package org.pixelami.twisted.utils
{
	public class __builtin__
	{
		static public function cmp(a:Object,b:Object):Boolean
		{
			return a === b;
		}
		
		static public function range(num:uint):Array
		{
			var a:Array = [];
			while(a.length < num)
			{
				a.push(a.length);
			}
			return a;
		}
		
		public static function len(o:Object):int
		{
			var l:int = 0;
			for(var i:String in o)
			{
				l++;
			}
			return l;
		}
		
		public function __builtin__()
		{
		}
		
		public static function hash(obj:Object):Object
		{
			//TODO this is crap
			// maybe use reflection with md5 - or just register an UID like mx.
			return "";
		}

	}
}